<?php

class SetDefaultCurrency extends Extension {
    function onBeforeInit(){
        $currency = SiteCurrencyConfig::current_site_currency();
        if($currency){
            Config::inst()->update('Currency', 'currency_symbol', $currency);
        }
    }
}
?>